package com.wocai.jrt.orgadmin.employee.dao;

import java.util.List;

import com.vteba.tx.jdbc.mybatis.annotation.DaoMapper;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;
import com.wocai.jrt.orgadmin.employee.bean.EmpGroupTreeBean;
import com.wocai.jrt.orgadmin.employee.bean.EmployeeListReqBean;
import com.wocai.jrt.orgadmin.employee.model.Employee;
import com.wocai.jrt.orgadmin.employee.model.EmployeeGroup;
import com.wocai.jrt.orgadmin.employee.model.EmployeeGroupBean;
import com.wocai.jrt.orgadmin.investor.bean.EmpBreifBean;

/**
 * 表employee_group的MyBatis Dao Mapper。
 * 由代码工具自动生成，可以新增方法，但是不要修改自动生成的方法。
 * @date 2015-08-17 19:59:25
 */
@DaoMapper
public interface EmployeeGroupDao extends BaseDao<EmployeeGroup, EmployeeGroupBean, String> {

	/**
	 * 获取团队树形结构
	 * @param orgId
	 * @return
	 */
	List<EmpGroupTreeBean> getEmpGroupList(String orgId);
	
	/**
	 * 获取团队下所有的队员
	 * @param groupId
	 * @return
	 */
	List<Employee> getEmployeeGroupList(String groupId);

	List<EmpBreifBean> getOrgEmployeeList(EmployeeListReqBean employeeListReqBean);
	
	List<EmployeeGroup> getSelectedEmployeeGroup(EmployeeGroup employeeGroup);
	List<EmployeeGroup> getNoTeamLeaderGroup(EmployeeGroup employeeGroup);
}